﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master/Site.Master" AutoEventWireup="true"
	CodeBehind="AccountProcessing.aspx.cs" Inherits="Hematology.UserSite.AccountProcessing" %>

<%@ Import Namespace="Hematology.Tools" %>
<%@ Import Namespace="Hematology.Tools.Text" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphRecent" runat="server">
	<hmt:PageTitle runat="server" ID="ptTitle" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphHeadNews" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphBody" runat="server">
	<div class="container2">
		<div id="left-div">
			<div class="post-wrapper">
				<div class="post">
					<div class="homepost-full">
						<h2 class="pageSubTitle">
							<asp:Label runat="server" ID="lblProcessingStatus" Text='<%$ Resources:UserSite, resUserData %>' />
						</h2>
						<asp:MultiView runat="server" ID="mvAccountProcessing">
							<asp:View runat="server" ID="vRegistration">
								<table class="registrationTable">
									<tr class="separate">
										<td class="td25">
											<asp:Label runat="server" ID="lblRegEmail" Text='<%$ Resources:UserSite, resEmail %>' />
											<span class="asterisk">
												<asp:Label runat="server" ID="lblRegEmailAsterisk" Text='<%$ Resources:UserSite, resAsterisk %>' />
											</span>
										</td>
										<td colspan="3" class="td75">
											<asp:TextBox runat="server" ID="txtEmail" MaxLength="200" />
											<asp:RequiredFieldValidator ID="vldEmailIsRequired" runat="server" ControlToValidate="txtEmail"
												ErrorMessage='<%$ Resources:UserSite, resEmailIsRequired %>' Display="None" ValidationGroup="vgRegistration"
												SetFocusOnError="true" />
											<asp:RegularExpressionValidator runat="server" ID="vldEmailRegex" ControlToValidate="txtEmail"
												ValidationExpression="([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})"
												ErrorMessage='<%$ Resources:UserSite, resIncorrectEmailFormat %>' Display="None"
												SetFocusOnError="true" ValidationGroup="vgRegistration" />
											<asp:CustomValidator runat="server" ID="vldEmailNotExists" ControlToValidate="txtEmail"
												ValidateEmptyText="True" ValidationGroup="vgRegistration" ErrorMessage='<%$ Resources:UserSite, resEmailIsExists %>'
												OnServerValidate="vldEmailNotExists_ServerValidate" Display="None" />
										</td>
									</tr>
									<tr>
										<td class="td25">
											<asp:Label runat="server" ID="lblPassword" Text='<%$ Resources:UserSite, resPassword %>' />
											<span class="asterisk">
												<asp:Label runat="server" ID="lblPasswordAsterisk" Text='<%$ Resources:UserSite, resAsterisk %>' />
											</span>
										</td>
										<td colspan="3" class="td75">
											<asp:TextBox runat="server" ID="txtPassword" TextMode="Password" MaxLength="200" />
											<asp:RequiredFieldValidator ID="vldPasswordIsRequired" runat="server" ControlToValidate="txtPassword"
												ErrorMessage='<%$ Resources:UserSite, resPasswordIsRequired %>' Display="None"
												ValidationGroup="vgRegistration" />
										</td>
									</tr>
									<tr>
										<td class="td25">
											<asp:Label runat="server" ID="lblRepeatPassword" Text='<%$ Resources:UserSite, resRepeatPassword %>' />
											<span class="asterisk">
												<asp:Label runat="server" ID="lblRepeatPasswordAsterisk" Text='<%$ Resources:UserSite, resAsterisk %>' />
											</span>
										</td>
										<td colspan="3" class="td75">
											<asp:TextBox runat="server" ID="txtRepeatPassword" TextMode="Password" MaxLength="200" />
											<asp:RequiredFieldValidator ID="vldPasswordRepeatIsRequired" runat="server" ControlToValidate="txtRepeatPassword"
												ErrorMessage='<%$ Resources:UserSite, resPasswordRepeatIsRequired %>' Display="None"
												ValidationGroup="vgRegistration" />
											<asp:CustomValidator runat="server" ID="vldPasswordsEquals" ValidateEmptyText="True"
												ValidationGroup="vgRegistration" OnServerValidate="vldPasswordsEquals_ServerValidate"
												ErrorMessage='<%$ Resources:UserSite, resPasswordsAreNotEquals %>' Display="None" />
										</td>
									</tr>
									<tr class="separate">
										<td class="td25">
											<asp:Label runat="server" ID="lblFirstName" Text='<%$ Resources:UserSite, resFirstName %>' />
											<span class="asterisk">
												<asp:Label runat="server" ID="lblFirstNameAsterisk" Text='<%$ Resources:UserSite, resAsterisk %>' />
											</span>
										</td>
										<td colspan="3" class="td75">
											<asp:TextBox runat="server" ID="txtFirstName" MaxLength="200" />
											<asp:RequiredFieldValidator ID="vldFirstNameIsRequired" runat="server" ControlToValidate="txtFirstName"
												ErrorMessage='<%$ Resources:UserSite, resFirstNameIsRequired %>' Display="None"
												ValidationGroup="vgRegistration" />
										</td>
									</tr>
									<tr>
										<td class="td25">
											<asp:Label runat="server" ID="lblMiddleName" Text='<%$ Resources:UserSite, resMiddleName %>' />
											<span class="asterisk">
												<asp:Label runat="server" ID="lblMiddleNameAsterisk" Text='<%$ Resources:UserSite, resAsterisk %>' />
											</span>
										</td>
										<td colspan="3" class="td75">
											<asp:TextBox runat="server" ID="txtMiddleName" MaxLength="200" />
											<asp:RequiredFieldValidator ID="vldMiddleNameIsRequired" runat="server" ControlToValidate="txtMiddleName"
												ErrorMessage='<%$ Resources:UserSite, resMiddleNameIsRequired %>' Display="None"
												ValidationGroup="vgRegistration" />
										</td>
									</tr>
									<tr>
										<td class="td25">
											<asp:Label runat="server" ID="lblLastName" Text='<%$ Resources:UserSite, resLastName %>' />
											<span class="asterisk">
												<asp:Label runat="server" ID="lblLastNameAsterisk" Text='<%$ Resources:UserSite, resAsterisk %>' />
											</span>
										</td>
										<td colspan="3" class="td75">
											<asp:TextBox runat="server" ID="txtLastName" MaxLength="200" />
											<asp:RequiredFieldValidator ID="vldLastNameIsRequired" runat="server" ControlToValidate="txtLastName"
												ErrorMessage='<%$ Resources:UserSite, resLastNameIsRequired %>' Display="None"
												ValidationGroup="vgRegistration" />
										</td>
									</tr>
									<tr>
										<td class="td25">
											<asp:Label runat="server" ID="lblBirthDate" Text='<%$ Resources:UserSite, resBirthDate %>' />
										</td>
										<td colspan="3" class="birthDateCombo">
											<hmt:CalendarPopup runat="server" ID="cpBirthDate" Nullable="True" ShowClearDate="True"
												ClearDateText="Очистить" />
										</td>
									</tr>
								</table>
								<asp:UpdatePanel runat="server" ID="upRegistration" UpdateMode="Conditional">
									<ContentTemplate>
										<table class="registrationTable">
											<tr class="separate">
												<td class="td25">
													<asp:Label runat="server" ID="lblJobCountry" Text='<%$ Resources:UserSite, resJobCountry %>' />
												</td>
												<td colspan="3" class="tdCombo">
													<asp:ListBox runat="server" ID="lbJobCountry" DataValueField="Id" DataTextField="Name"
														OnSelectedIndexChanged="ddlJobCountry_SelectedIndexChanged" AutoPostBack="True"
														Rows='<%# ConfigReader.LocationsRowsCount %>' />
												</td>
											</tr>
											<tr>
												<td class="td25">
													<asp:Label runat="server" ID="lblJobCity" Text='<%$ Resources:UserSite, resJobCity %>' />
												</td>
												<td colspan="3" class="tdCombo">
													<asp:ListBox runat="server" ID="lbJobCity" DataValueField="Id" DataTextField="Name"
														OnSelectedIndexChanged="ddlJobCity_SelectedIndexChanged" AutoPostBack="True"
														Rows="10" />
												</td>
											</tr>
											<tr>
												<td class="td25">
													<asp:Label runat="server" ID="lblJob" Text='<%$ Resources:UserSite, resJob %>' />
													<span class="asterisk">
														<asp:Label runat="server" ID="lblJobAsterisk" Text='<%$ Resources:UserSite, resAsterisk %>' />
													</span>
												</td>
												<td colspan="3" class="tdCombo">
													<asp:ListBox runat="server" ID="lbJob" DataValueField="JobId" DataTextField="Abbreviation"
														Rows='<%# ConfigReader.LocationsRowsCount %>' />
													<asp:RequiredFieldValidator ID="vldJobIsRequired" runat="server" ControlToValidate="lbJob"
														ErrorMessage='<%$ Resources:UserSite, resJobIsRequired %>' Display="None" ValidationGroup="vgRegistration" />
												</td>
											</tr>
											<tr>
												<td class="td25">
													<asp:Label runat="server" ID="lblJobPosition" Text='<%$ Resources:UserSite, resJobPosition %>' />
													<span class="asterisk">
														<asp:Label runat="server" ID="lblJobPositionAsterisk" Text='<%$ Resources:UserSite, resAsterisk %>' />
													</span>
												</td>
												<td colspan="3" class="td75">
													<asp:TextBox runat="server" ID="txtJobPosition" MaxLength="200" />
													<asp:RequiredFieldValidator ID="vldJobPositionIsRequired" runat="server" ControlToValidate="txtJobPosition"
														ErrorMessage='<%$ Resources:UserSite, resJobPositionIsRequired %>' Display="None"
														ValidationGroup="vgRegistration" />
												</td>
											</tr>
											<tr>
												<td class="td25">
													<asp:Label runat="server" ID="lblPhone1" Text='<%$ Resources:UserSite, resPhone1 %>' />
												</td>
												<td colspan="2" class="td75">
													<asp:TextBox runat="server" ID="txtPhone1" MaxLength="200" />
												</td>
											</tr>
											<tr>
												<td class="td25">
													<asp:Label runat="server" ID="lblPhone2" Text='<%$ Resources:UserSite, resPhone2 %>' />
												</td>
												<td colspan="3" class="td75">
													<asp:TextBox runat="server" ID="txtPhone2" MaxLength="200" />
												</td>
											</tr>
											<tr>
												<td class="td25">
													<asp:Label runat="server" ID="lblSkype" Text='<%$ Resources:UserSite, resSkype %>' />
												</td>
												<td colspan="3" class="td75">
													<asp:TextBox runat="server" ID="txtSkype" MaxLength="200" />
												</td>
											</tr>
										</table>
									</ContentTemplate>
								</asp:UpdatePanel>
								<div class="tdSubmit">
									<asp:Button runat="server" ID="btnSaveAccessUser" UseSubmitBehavior="true" Text='<%$ Resources:UserSite, resSaveAccessUser %>'
										OnClick="btnSaveAccessUser_Click" ValidationGroup="vgRegistration" />
								</div>
							</asp:View>
							<asp:View runat="server" ID="vRemindPassword">
								<div class="userCenteredForm">
									<div class="userCenteredBlock">
										<div class="userCenteredTitle">
											<asp:Label runat="server" ID="lblRemindPasswordEmail" Text='<%$ Resources:UserSite, resEnterEmail %>' />
										</div>
										<div class="userCenteredControl">
											<asp:TextBox ID="txtRegisteredEmail" runat="server" MaxLength="200" />
											<asp:RequiredFieldValidator ID="vldRegisteredEmailIsRequired" runat="server" ControlToValidate="txtRegisteredEmail"
												ErrorMessage='<%$ Resources:UserSite, resEmailIsRequired %>' Display="None" SetFocusOnError="true"
												ValidationGroup="vgRemindPassword" />
											<asp:RegularExpressionValidator runat="server" ID="vldRegisteredEmailRegex" ControlToValidate="txtRegisteredEmail"
												ValidationExpression="([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})"
												ErrorMessage='<%$ Resources:UserSite, resIncorrectEmailFormat %>' Display="None"
												SetFocusOnError="true" ValidationGroup="vgRemindPassword" />
											<asp:CustomValidator runat="server" ID="vldRegisteredEmailExists" ControlToValidate="txtRegisteredEmail"
												ValidateEmptyText="True" ValidationGroup="vgRemindPassword" ErrorMessage='<%$ Resources:UserSite, resEmailIsNotExists %>'
												OnServerValidate="vldRegisteredEmailExists_ServerValidate" Display="None" />
										</div>
									</div>
									<div class="userCenteredBlock">
										<div class="userCenteredSubmit">
											<asp:Button runat="server" ID="btnRemindPassword" Text='<%$ Resources:UserSite, resSendPassword %>'
												OnClick="btnRemindPassword_Click" ValidationGroup="vgRemindPassword" />
										</div>
									</div>
								</div>
							</asp:View>
							<asp:View runat="server" ID="vResetPassword">
								<div class="infoPanelCentered">
									<asp:Label runat="server" ID="lblResetPasswordStatus" />
								</div>
							</asp:View>
						</asp:MultiView>
					</div>
				</div>
			</div>
		</div>
	</div>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="cphPanel" runat="server">
	<div class="sidebar-box">
		<h2>
			<asp:Label ID="lblSideBarCaption" runat="server" Text='<%$ Resources:UserSite, resAccount %>' />
		</h2>
		<ul>
			<li>
				<asp:HyperLink runat="server" ID="hlRegistration" Text='<%$ Resources:UserSite, resRegistration %>'
					NavigateUrl="/AccountProcessing.aspx?view=Registration" />
			</li>
			<li>
				<asp:HyperLink runat="server" ID="hlRemindPassword" Text='<%$ Resources:UserSite, resRemindPassword %>'
					NavigateUrl="/AccountProcessing.aspx?view=RemindPassword" />
			</li>
		</ul>
	</div>
	<asp:ValidationSummary runat="server" ID="vsSummaryRegistration" DisplayMode="BulletList"
		ValidationGroup="vgRegistration" ShowMessageBox="True" ShowSummary="False" />
	<asp:ValidationSummary runat="server" ID="vsSummaryRemindPassword" DisplayMode="BulletList"
		ValidationGroup="vgRemindPassword" ShowMessageBox="True" ShowSummary="False" />
</asp:Content>
